import request from '@/utils/request'

export function GetDirectoryTree(path) {
  return request({
    url: '/api/project/SurveyUpload/GetDirectoryTree',
    method: 'get',
    params: {
      path
    }
  })
}
export function GetImportFiles() {
  return request({
    url: '/api/project/SurveyUpload/GetImportFiles',
    method: 'get',
  })
}
export function GetSurveyImageCache() {
  return request({
    url: '/api/project/SurveyUpload/GetSurveyImageCache',
    method: 'get',
  })
}
export function ImportCacheImage(id) {
  return request({
    url: '/api/project/SurveyUpload/ImportCacheImage',
    method: 'get',
    params: {
      id
    }
  })
}
export function DeleteCacheImage(id) {
  return request({
    url: '/api/project/SurveyUpload/DeleteCacheImage',
    method: 'get',
    params: {
      id
    }
  })
}
export function GetDirectoryFile(path) {
  return request({
    url: '/api/project/SurveyUpload/GetDirectoryFile',
    method: 'get',
    params: {
      path
    }
  })
}
export function ChangeDirectoryName(path, name) {
  return request({
    url: '/api/project/SurveyUpload/ChangeDirectoryName',
    method: 'get',
    params: {
      path,
      name
    }
  })
}
export function ChangeFileName(path, name) {
  return request({
    url: '/api/project/SurveyUpload/ChangeFileName',
    method: 'get',
    params: {
      path,
      name
    }
  })
}